//授权
const Router = require('koa-router');

const authRouter = new Router();

const {
    login,
    success
} = require('../controller/auth.controller');

const {
    verifyLogin,
    verifyAuth
} = require('../middleware/auth.middleware');

//授权登录
authRouter.post('/law/login', verifyLogin, login);

//测试授权
authRouter.get('/test', verifyAuth, success);

module.exports = authRouter;